package netty.rpc.framework.client;


import lombok.extern.slf4j.Slf4j;
import netty.rpc.framework.client.controller.Controller;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@Slf4j
public class ClientApp {

    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext run = SpringApplication.run(ClientApp.class, args);
        Controller bean = run.getBean(Controller.class);
        bean.testUsers();
        Thread.sleep(10000);
        bean.test();

        //手动生成客户端代理对象
    }


}